package com.lianzai.mobile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.lianzai.mobile.dao.CarPriceRelaDao;
import com.lianzai.mobile.domain.CarPriceRelaDO;
import com.lianzai.mobile.service.CarPriceRelaService;



@Service
public class CarPriceRelaServiceImpl implements CarPriceRelaService {
	@Autowired
	private CarPriceRelaDao carPriceRelaDao;
	
	@Override
	public CarPriceRelaDO get(Long id){
		return carPriceRelaDao.get(id);
	}

	@Override
	public CarPriceRelaDO getByCarNumber(String carNumber)
	{
		return carPriceRelaDao.getByCarNumber(carNumber);
	}

	@Override
	public CarPriceRelaDO getByCarAndCommunity(String carNumber, Long communityId)
	{

		return carPriceRelaDao.getByCarAndCommunity(carNumber, communityId);
	}
	
	@Override
	public List<CarPriceRelaDO> list(Map<String, Object> map){
		return carPriceRelaDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return carPriceRelaDao.count(map);
	}
	
	@Override
	public int save(CarPriceRelaDO carPriceRela){
		return carPriceRelaDao.save(carPriceRela);
	}
	
	@Override
	public int update(CarPriceRelaDO carPriceRela){
		return carPriceRelaDao.update(carPriceRela);
	}
	
	@Override
	public int remove(Long id){
		return carPriceRelaDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return carPriceRelaDao.batchRemove(ids);
	}
	
}
